<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Earn extends Model
{
    protected $table = 'earn';
    public function getname()
    {
        return $this->belongsTo('App\Model\User', 'uid', 'id');
    }
}
